<section class="main">
    <div class="main-inner">
        <section class="qb-top clearfix">
            <div class="qb-list">
                <div class="qb-title">
                    <P class="fs18">重庆时时彩定位胆计划</P>
                </div>
                <div class="qb-item">
                    <ul class="list borBottom fs14 cqssc">
                    </ul>
                </div>
            </div>
            <div class="qb-list">
                <div class="qb-title">
                    <P class="fs18">PK10猜冠军</P>
                </div>
                <div class="qb-item">
                    <ul class="list borBottom fs14 bjpk10">
                    </ul>
                </div>
            </div>
            <div class="qb-list">
                <div class="qb-title">
                    <P class="fs18">11选5任选一</P>
                </div>
                <div class="qb-item">
                    <ul class="list borBottom fs14 gd11x5">
                    </ul>
                    <ul class="list borBottom fs14 jx11x5">
                    </ul>
                    <ul class="list borBottom fs14 sd11x5">
                    </ul>
                </div>
            </div>
            <div class="qb-list qb-list2">
                <div class="qb-title qb-title2 clearfix">
                    <P class="fs18 fl white">常见问题</P>
                    <a class="more fs14 fr white" href="<?=site_url('help/articlelist/question/0')?>" target="_blank">查看更多</a>
                </div>
                <div class="qb-item">
                    <ul class="list borBottom fs14">
                        <?php foreach($articlelist as $k=>$rows): ?>
                        <?php $segment = [
                            'help',
                            'content',
                            1,
                            $rows['id']
                        ]; ?>
                        <li class="black"><span class="tip"><?=$k+1?></span><a href="<?=site_url($segment)?>" target="_blank"><?=$rows['title']?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
        </section>
        <section class="qb-bot">
            <div class="title"></div>
            <div class="qb-poduct clearfix">
                <div class="bg-line"></div>
                
                <?php foreach($softwarelist as $k=>$rows): ?>
                    <div class="poduct-list">
                        <div class="item-top clearfix">
                            <div class="row fl"><img src="<?=base_url()?><?=$rows['thumb']?>" /></div>
                            <div class="row fr">
                                <p class="fs16"><?=$rows['name']?></p>
                                <div class="rate-box clearfix"><span class="rate-bar"><span style="width: <?=$rows['score']?>%"></span></span></div>
                                <p class="fs13">类别：<?=$rows['cate']?></p>
                                <p class="fs13">适用：<?=$rows['lottery']?></p>
                                <p class="fs13">支持：<?=$rows['os']?></p>
                            </div>
                        </div>
                        <div class="item-bot">
                            <a class="downBtn" href="<?=$rows['download']?>" target="_blank"><img src="<?=base_url()?>static/home/images/dow-icon.png" />立即下载</a>
                            <a class="explain" href="#" target="_blank"><img src="<?=base_url()?>static/home/images/explain.png" />使用说明</a>
                        </div>
                    </div>
                    <?php endforeach; ?>
                
                
               
            </div>
        </section>
    </div>
</section>
<script>
    $(function () {
        let url = "<?= site_url('home/getPlancode') ?>";
        let jsonData_cqssc = {
            'tid': 1
        };
        let jsonData_bjpk10 = {
            'tid': 2
        };
        let jsonData_gd11x5 = {
            'tid': 3
        };
        let jsonData_jx11x5 = {
            'tid': 4
        };
        let jsonData_sd11x5 = {
            'tid': 5
        };
        request(url, jsonData_cqssc, $(".cqssc"));
        request(url, jsonData_bjpk10, $(".bjpk10"));
        request(url, jsonData_gd11x5, $(".gd11x5"));
        request(url, jsonData_jx11x5, $(".jx11x5"));
        request(url, jsonData_sd11x5, $(".sd11x5"));

        $(document).on('click', '.planerlist', function () {
            let tid = $(this).attr('tid');
            let planer_tid = $(this).attr('planer_tid');
            window.location.href = "<?= site_url('plan/details') ?>" + '/' + tid + '/' + planer_tid;
        })
    })
    function request(url, jsonData, obj) {
        $.get(url, jsonData, function (redata) {
            let prefixstr = '';
            switch (jsonData.tid) {
                case 1:
                    {
                        prefixstr = '重庆时时彩 五码三期 ';
                    }
                    break;
                case 2:
                    {
                        prefixstr = '北京PK10 五码三期 ';
                    }
                    break;
                case 3:
                    {
                        prefixstr = '广东11选5 一码三期 ';
                    }
                    break;
                case 4:
                    {
                        prefixstr = '江西11选5 一码三期 ';
                    }
                    break;
                case 5:
                    {
                        prefixstr = '山东11选5 一码三期 ';
                    }
                    break;
            }
            let str = '';
            for (x in redata.plancode) {
                str += '<li class="black"><a href="javascript:void(0);" tid="' + redata.plancode[x].tid + '" planer_tid="' + redata.plancode[x].planer_tid + '" class="planerlist">' + prefixstr + redata.plancode[x].plan_issue + '<i class="lines"></i>' + redata.plancode[x].planer_name + '<i class="lines"></i>' + redata.plancode[x].current_issue + '期  <i class="lines"></i><' + redata.plancode[x].plan_code + '><i class="lines"></i>正在投注...</a></li>';
            }
            obj.html(str);
            setTimeout(request,30000,url, jsonData, obj);
        }, 'json');
    }
</script>
